<!DOCTYPE html>
<html lang="vi">
    <head>
        <title><?php echo $this->pageTitle; ?></title>
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
        <meta name="ROBOTS" content="noindex,nofollow">
        <meta name="AUTHOR" content="casino888.vn">
        <meta http-equiv="EXPIRES" content="0">
        <meta name="RESOURCE-TYPE" content="DOCUMENT">
        <meta name="DISTRIBUTION" content="GLOBAL">
        <meta name="COPYRIGHT" content="Copyright (c) by Casino888">
        <meta name="Googlebot" content="index,follow">
        <meta name="RATING" content="GENERAL">
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">                       
        <link rel="shortcut icon" href="<?php echo Yii::app()->createUrl('images/casino888.png');?>" />                     
        
        <?php Yii::app()->clientScript->registerCssFile('/css/bootstrap.min.css') ?>
        <?php Yii::app()->clientScript->registerCssFile('/css/justified-nav.css') ?>
        <?php Yii::app()->clientScript->registerCssFile('/css/style.css') ?>
        <?php Yii::app()->clientScript->registerCssFile('/css/idangerous.swiper.css') ?>
        <?php Yii::app()->clientScript->registerCssFile('/css/prettyPhoto.css') ?>
        
        
        <?php Yii::app()->clientScript->registerCoreScript('jquery'); ?> 
        <?php //Yii::app()->clientScript->registerScriptFile('/js/jquery-1.7.min.js') ?>
        <?php Yii::app()->clientScript->registerScriptFile('/js/idangerous.swiper-2.1.min.js') ?>
        <?php Yii::app()->clientScript->registerScriptFile('/js/jquery.prettyPhoto.js') ?>
        
        <?php include_once'googleanalytic.php'; ?>
        <!-- HTML 5 shim for IE backwards compatibility -->
        <!-- [if lt IE 9]>
        <script src="http://html5shim.googlecode.com/svn/trunk/html5.js">
        </script>
        <![endif]-->        
    </head>
    <body>
        <div id="fb-root"></div>
        <script>(function(d, s, id) {
          var js, fjs = d.getElementsByTagName(s)[0];
          if (d.getElementById(id)) return;
          js = d.createElement(s); js.id = id;
          js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=1401311996778175";
          fjs.parentNode.insertBefore(js, fjs);
        }(document, 'script', 'facebook-jssdk'));</script>
        <div class="header">
            <div class="container">
                <div class="navbar-header">                    
                    <a href="<?php echo Yii::app()->homeUrl ?>" rel="nofollow"><img src="<?php echo Yii::app()->createUrl('images/logo.png') ?>" alt="casino" class="templatemo_logo"></a>
                </div>
<!--                <form  action="<?php echo Yii::app()->createUrl('site/search'); ?>" method="get" class="navbar-form" role="search">
                    <div class="form-group">
                        <input type="text" class="form-control" placeholder="Search" id="keyword" name="keyword">
                    </div>
                    <button type="submit" class="btn btn-search" name="Search"></button>
                </form>  -->
                <div class="top-menu">
                    <?php $pcode = Yii::app()->request->getParam('pcode');
                    if(!isset($pcode)) $pcode = 'window';
                    ?>
                    <ul class="">                            
                        <li><a href="<?php echo Yii::app()->createUrl('nen-tang/window') ?>"><span class="top-background platform-window"><span class="<?php if($pcode=="window") echo "selected"; else echo "noselect" ?>"></span></span></a></li>                            
                        <li><a href="<?php echo Yii::app()->createUrl('nen-tang/ios') ?>"><span class="top-background platform-ios"><span class="<?php if($pcode=="ios") echo "selected"; else echo "noselect" ?>"></span></span></a></li>                            
                        <li><a href="<?php echo Yii::app()->createUrl('nen-tang/android') ?>"><span class="top-background platform-android"><span class="<?php if($pcode=="android") echo "selected"; else echo "noselect" ?>"></span></span></a></li>                            
                        <li><a href="<?php echo Yii::app()->createUrl('nen-tang/j2me') ?>"><span class="top-background platform-j2me "><span class="<?php if($pcode=="j2me") echo "selected"; else echo "noselect" ?>"></span></span></a></li>                                                    
                    </ul>
                </div> <!-- nav -->
            </div>
        </div>
        <div id="main_container">
            <div class="container" id="home">                                                
                <?php echo $content;?>    
            </div>            
        </div>
        <footer class="footer">
            <div class="credit row">
                <div class="col-md-6 col-md-offset-3">
                    <div id="templatemo_footer">
                        Copyright © 2014 <a href="<?php echo Yii::app()->createAbsoluteUrl('') ?>">Casino888.vn</a>
                        <a href="https://www.facebook.com/casino888.in" rel="nofollow"><span class="btn-fb"></span></a>
                        <a href="#"><span class="btn-tw"></span></a>
                        <a href="#"><span class="btn-gg"></span></a>
                    </div>

                </div>                    				
            </div>
        </footer>
    </body>    
</html>
<script type="text/javascript">
$(document).ready(function(){
    $("#countrytabs li").click(function(){
        $('.tab a').removeClass('selected');
        $('.tabcontent').hide();        
        $(this).children('a').addClass('selected');
        tabcontent = $(this).children('a').attr('rel');
        $('#'+tabcontent).show();
    });
    
    $("area[rel^='prettyPhoto']").prettyPhoto();
    $(".gallery:first a[rel^='prettyPhoto']").prettyPhoto({animation_speed:'normal',theme:'light_square',slideshow:3000, autoplay_slideshow: true});
    $(".gallery:gt(0) a[rel^='prettyPhoto']").prettyPhoto({animation_speed:'fast',slideshow:10000, hideflash: true});
    
})
</script>